package com.chapter01exercise.homework07;

/**
 * @Author 小闽
 * @Date 2024/8/17 9:46
 * @PackageName: com.chapter01exercise.homework07
 * @ClassName: Test
 * @Description: 测试类
 * @Version 1.0
 */
public class Test {
    String name = "Rose";

    /**
     * 构造器（无参）
     */
    Test(){
        System.out.println("Test");
    }

    /**
     * 构造器（有参）
     * @param name
     */
    Test(String name){
        this.name = name;
    }
}
